package com.mrjy.maintain.dao;

import java.util.List;

import com.mrjy.common.entity.SchoolInfo;
import com.mrjy.maintain.dto.SchoolInfoDTO;

public interface ISchoolInfoDao {
		//分页查询学校
		List<SchoolInfoDTO> queryPage(SchoolInfoDTO dto);
		
		//统计学校
		int countSchoolInfo(SchoolInfoDTO schoolInfo);
		
		//添加学校
		int insert(SchoolInfo schoolInfo);
		
		//根据Id查找学校
		SchoolInfoDTO queryById(int id);
		
		//根据ID修改学校
		int updateById(SchoolInfo schoolInfo);
			
		//根据ID删除学校
		int deleteByIds(int[] ids);
			
		//根据ID禁用、起用学校
		int updateDisableFlag(SchoolInfo schoolInfo);

		SchoolInfo querySchoolByRecommendCode(String recommendCode);

		SchoolInfo queryByUserId(Integer userId);

		List<SchoolInfoDTO> checkSchoolInfoStatusExpired();

		SchoolInfo queryByUserIdAndSchoolId(SchoolInfo schoolInfo);

		SchoolInfoDTO queryBySchoolId(Integer schoolId);

		SchoolInfoDTO querySchoolById(Integer schoolId);
		
		
}
